package com.ruoyi.resitExam.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生补考对象 sys_resit_exam
 * 
 * @author ruoyi
 * @date 2025-05-06
 */
public class SysResitExam extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 补考ID */
    private Integer resitId;

    /** 原成绩ID */
    @Excel(name = "原成绩ID")
    private Integer scoreId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 科目ID */
    @Excel(name = "科目ID")
    private Integer subjectId;

    /** 科目名称 */
    @Excel(name = "科目名称")
    private String subjectName;

    /** 科目编码 */
    @Excel(name = "科目编码")
    private String subjectCode;

    /** 原始成绩 */
    @Excel(name = "原始成绩")
    private BigDecimal originalScore;

    /** 补考成绩 */
    @Excel(name = "补考成绩")
    private BigDecimal resitScore;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date applyTime;

    /** 补考时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "补考时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date resitTime;

    /** 考试地点 */
    @Excel(name = "考试地点")
    private String examLocation;

    /** 补考状态（0待审核 1已通过 2已拒绝 3已完成） */
    @Excel(name = "补考状态", readConverterExp = "0=待审核,1=已通过,2=已拒绝,3=已完成")
    private String resitStatus;

    /** 是否合格（0不合格 1合格） */
    @Excel(name = "是否合格", readConverterExp = "0=不合格,1=合格")
    private String isQualified;

    /** 状态（0正常 1异常） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=异常")
    private String status;

    public void setResitId(Integer resitId) {
        this.resitId = resitId;
    }

    public Integer getResitId() {
        return resitId;
    }

    public void setScoreId(Integer scoreId) {
        this.scoreId = scoreId;
    }

    public Integer getScoreId() {
        return scoreId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }

    public Integer getSubjectId() {
        return subjectId;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public String getSubjectCode() {
        return subjectCode;
    }

    public void setSubjectCode(String subjectCode) {
        this.subjectCode = subjectCode;
    }

    public void setOriginalScore(BigDecimal originalScore) {
        this.originalScore = originalScore;
    }

    public BigDecimal getOriginalScore() {
        return originalScore;
    }

    public void setResitScore(BigDecimal resitScore) {
        this.resitScore = resitScore;
    }

    public BigDecimal getResitScore() {
        return resitScore;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setResitTime(Date resitTime) {
        this.resitTime = resitTime;
    }

    public Date getResitTime() {
        return resitTime;
    }

    public void setExamLocation(String examLocation) {
        this.examLocation = examLocation;
    }

    public String getExamLocation() {
        return examLocation;
    }

    public void setResitStatus(String resitStatus) {
        this.resitStatus = resitStatus;
    }

    public String getResitStatus() {
        return resitStatus;
    }

    public void setIsQualified(String isQualified) {
        this.isQualified = isQualified;
    }

    public String getIsQualified() {
        return isQualified;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("resitId", getResitId())
                .append("scoreId", getScoreId())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("nickName", getNickName())
                .append("subjectId", getSubjectId())
                .append("subjectName", getSubjectName())
                .append("subjectCode", getSubjectCode())
                .append("originalScore", getOriginalScore())
                .append("resitScore", getResitScore())
                .append("applyTime", getApplyTime())
                .append("resitTime", getResitTime())
                .append("examLocation", getExamLocation())
                .append("resitStatus", getResitStatus())
                .append("isQualified", getIsQualified())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
